package com.tiancheng.trade.authserver.dto;

import com.tiancheng.trade.authserver.entity.AuthOrg;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class OrgAddUpdateDTO {
    @NotEmpty(message = "{50900}")
    private String id;
    @NotEmpty(message = "applicationId不能为空")
    private String applicationId;
    @NotEmpty(message = "name不能为空")
    private String name;
    @NotEmpty(message = "code不能为空")
    private String code;
    private String describe;
    private String parentId;
    @NotNull(message = "type不能为空")
    private AuthOrg.OrgType type;
    /**
     * 排序
     */
    @NotNull(message = "排序号不能为空")
    private Integer order;
}
